package com.ai.module.user.domain.entity;

import com.ai.module.chat.common.domain.BaseEntity;
import com.ai.module.chat.common.enu.ModelType;
import com.ai.module.user.enu.PointSource;
import com.ai.module.mj.constant.enums.TaskAction;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author: MrHe
 * @create: 2024-01-23 22:57
 * @description: 用户积分记录
 **/
@Data
@TableName("user_points")
public class UserPointsRecordEntity extends BaseEntity {

    @TableField("user_id")
    private String userId;

    @TableField("model_type")
    private ModelType modelType;

    @TableField("business_id")
    private String businessId;

    @TableField("prompt")
    private String prompt;

    @TableField("before_points")
    private Integer beforePoints;

    @TableField("after_points")
    private Integer afterPoints;

    @TableField("point_type")
    private TaskAction pointType;

    @TableField("source")
    private PointSource source= PointSource.commonChat;

    @TableField("source_id")
    private String sourceId;

}
